﻿<style>
body {
	text-align:center;
	margin:0px;
}

#data_manage_statistic_content {
	position: absolute;
	z-index: auto;
	height: auto;
	width: 1000px;
	left:0px;
	top:80px;

}
#data_manage_statistic_menu {
	width:300px;
	padding-left:20px;
	height:auto;
	text-align:left;	
}
#data_manage_statistic_top {
	width:900px;
	height:auto;
	margin-top:10px;
	padding-left:50px;

}
#data_manage_statistic_content #data_manage_statistic_top table {
	font-family: "ＭＳ Ｐゴシック", "ＭＳ ゴシック", "ＭＳ Ｐ明朝", "ＭＳ 明朝", "MS UI Gothic";
	font-size: 12px;
	text-align:center;
}

</style>
	<!--{include /service/service_head}-->
	<div id="data_manage_statistic_content">
	<div id="data_manage_statistic_menu">
		<ul>
			${datamanage_backend($oauthMap)}
		</ul>
	</div>
	
	<div id="data_manage_statistic_top">
	<form action="/service/dataManage_statistic.php" id="indexform" method="get">
		<div>
			<input type="text" name="search_date" value="${date("Y-m-d", $startTime)}" onfocus="WdatePicker({lang:'jp'})" class="Wdate">～
			<input type="text" name="" value="${date("Y-m-d", $endTime)}" onfocus="WdatePicker({lang:'jp'})" class="Wdate"/>
			<select name="time_type" class="f-city">
				<option value="0">選択してください</option>
				${Utility::Option($timeTypeList, $timeType)}
			</select>
			<select id="resource_type" name="resource_type">
	           	<option value="0">選択してください</option>
				${Utility::Option($resourceTypeList, $resourceType)}
	        </select>
			<input type="submit" name="" value="検索" />
		</div>
	</form>
	
	<table width="900" border="1" cellspacing="0" cellpadding="0">

    <tr>
    	<td>{$ctitle}</td>
    	<td>店舗名</td>
    	<td>合計</td>
    	<td>数</td>
    	<!--{loop $serviceIdList $index2 $one2}-->
    	<td>{$one2['service_name']}(数)</td>
    	<td>{$one2['service_name']}(合計)</td>
    	<!--{/loop}-->
    </tr>
	
	<!--{loop $statisticListView $index1 $one1}-->
    <tr>
    	<td>{$one1['title_name']}{$one1['designation_stuff']}</td>
    	<td>{$one1['name']}</td>
    	<td>{$one1['total_money']}</td>
    	<td>{$one1['count']}</td>
    	<!--{loop $one1['services'] $index2 $one2}-->
    	<td>{$one2['count']}</td>
    	<td>{$one2['total_money']}</td>
    	<!--{/loop}-->
    </tr>
    <!--{/loop}-->

	<tr>
		<td></td>
		<td>{$totalMoney['name']}</td><td>{$totalMoney['total_money']}</td>
		<td>{$totalMoney['count']}</td>
		<!--{loop $serviceIdList $index2 $one2}-->
    	<td>{$totalMoney[$index2.'_count']}</td>
    	<td>{$totalMoney[$index2]}</td>
    	<!--{/loop}-->
	</tr>
  	</table>
    <table>
    <tr>
    <td width="900" align="center">
    <a href="{$searchUrl}&response_type=excel"><font size="+2">Excel Export</font></a>
    </td>
    </tr>
    </table>
  	</div>
  	</div>
</body>
</html>
<script type="text/javascript"> 
	
</script> 
</html> 